#ifndef CONFIGINFO_H
#define CONFIGINFO_H

#include <QObject>

class ConfigInfo : public QObject
{
    Q_OBJECT
public:
    explicit ConfigInfo(QObject *parent = nullptr);
    ConfigInfo(int portno,QString crexp,QString ifexp,int linksnum,
               QString peerhost,int peerport,QString con,QString discon,int ftime);

    int getPortNo() const;
    void setPortNo(int value);

    QString getCrExplained() const;
    void setCrExplained(const QString &value);

    QString getIfExplained() const;
    void setIfExplained(const QString &value);

    int getLinksNum() const;
    void setLinksNum(int value);

    QString getPeerHost() const;
    void setPeerHost(const QString &value);

    int getPeerPort() const;
    void setPeerPort(int value);

    QString getConnect() const;
    void setConnect(const QString &value);

    QString getDisconnet() const;
    void setDisconnet(const QString &value);

    int getFreetime() const;
    void setFreetime(int value);

    int getProtocol() const;
    void setProtocol(int value);

private:
    int portNo; //端口号
    QString crExplained; //cr预留
    QString ifExplained; //if预留
    int linksNum;       //连接数
    int protocol;       //连接模式
    QString peerHost;   //通话方式
    int peerPort;      //对端端口
    QString connect;  //连接字符串
    QString disconnet; //断开连接字符串
    int freetime;   //空闲时间
};

#endif // CONFIGINFO_H
